package com.czc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/*
    security第一个简单例子
 */
@Controller
public class LoginController {
    /*
        登录http://localhost:8080/login.html 会自动跳转到security默认的登入页面
     */

    //登录
    @RequestMapping("/login")
    public String login(){
        return "redirect:main.html";
    }
}
